package test

import (
	"cvevulner/common"
	"github.com/astaxie/beego"
	"testing"
)

func TestEnPwdCode(t *testing.T)  {
	pwd := []byte("159xwz@Qmxx")
	key := []byte(beego.AppConfig.String("key"))
	code, err := common.EnPwdCode(pwd, key)
	if err != nil {
		t.Error(err)
	}else {
		t.Log(code)
	}
}
